import { scheduleTypes, scheduleStatusList, scheduleGroups } from '@/views/olm/schedule/js/edit'

/** 下拉列表 */
var selector = {
  dataStatusList: [
    { value: 0, name: '待校验', itemListShow: true },
    { value: 7, name: '校验中', itemListShow: true },
    { value: -1, name: '校验失败', itemListShow: true },
    { value: 1, name: '校验成功', itemListShow: true },
    { value: 2, name: '已提交', itemListShow: true },
    { value: 3, name: '审核通过', itemListShow: true },
    { value: 4, name: '审核驳回', itemListShow: true },
    { value: 5, name: '未提交', itemListShow: false },
    { value: 6, name: '终审', itemListShow: false }
  ],
  scheduleTypes: scheduleTypes,
  scheduleStatusList: scheduleStatusList,
  scheduleGroups: scheduleGroups,
  optionTypes: [{ value: 1, name: '新增 ' }, { value: 3, name: '删除' }]
}

// 获取下拉框
export function getSelector() {
  return selector
}

export function emptyEntity() {
  return {
    id: null,
    scheduleId: null,
    deptNbr: null,
    cateId: null,
    buyerId: null,
    onlineUpcNbr: null,
    onlineItemName: null,
    promotionStartDate: null,
    promotionEndDate: null,
    promotionPrice: null,
    buyLimited: null,
    sendStore: null,
    omitSendStore: null,
    remark: null,
    dataStatus: null,
    validateMsg: null,
    promptMsg: null,
    listType: null,
    optionType: null
  }
}
